import Mock from 'mockjs';

let order = [
	{
		key: "/order/list",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
                        "orderId": '@increment(1)',
      //                   "clientId": '@increment(1)',
						// "lessonId": '@increment(1)',
						"clientName": '@cname()',
                        "courseName": '@cname()',
                        "coursePrice": /[1-9][0-9][0-9]/,
                        "trainerName": '@cname()',
                        // "storeName": "@cname()",
                        "ct": '@datetime("yyyy-MM-dd hh:mm:ss")',
						// "courseLongs": /[1-9][0-9][0-9]/,
						"statu": '@cname()'
						
                        // "courseCount": /[1-9][0-9]/,
						// "delFlg": true,
                        
					}]
				}
			});
		}
	},
	{
		key: "/order/info",
		method: "get",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
                    "orderId": '@increment(1)',
                    "clientId": '@increment(1)',
                    "lessonId": '@increment(1)',
                    "clientName": "@cname()",
                    "trainerName": "@cname()",
                    "storeName": "@cname()",
                    "courseName": "@cname()",
                    "courseLongs": /[1-9][0-9][0-9]/,
                    "startTime": '@datetime("yyyy-MM-dd hh:mm:ss")',
                    "endTime": '@datetime("yyyy-MM-dd hh:mm:ss")',
                    "ct": '@datetime("yyyy-MM-dd hh:mm:ss")',
                    "statu": '@cname()',
                    "coursePrice": /[1-9][0-9][0-9]/,
                    "courseCount": /[1-9][0-9]/,
                    "delFlg": true
				}
			})
		}
	}
];

export default order;
